package com.operate;

import static androidx.core.content.ContextCompat.startActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

import com.example.endwork.homePage;
import com.example.endwork.page2;

public class addData implements View.OnClickListener{
    private homePage content;
    public addData(homePage content){
        this.content=content;
    }

    @Override
    public void onClick(View view) {
        Intent intent = new Intent(content, page2.class);
        intent.putExtra("type", "E");
        content.startActivity(intent);
    }
    //定义添加数据保证数据可以执行
}
